package com.zzxx.wechat.job;


import com.zzxx.wechat.dao.ArcteryxProductDao;
import com.zzxx.wechat.entity.ArcteryxProduct;
import com.zzxx.wechat.exception.DistributedLockException;
import com.zzxx.wechat.service.ArcteryxLinkService;
import com.zzxx.wechat.service.ArcteryxTaskService;
import com.zzxx.wechat.util.TraceUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Component
@EnableScheduling
public class ArcteryTaskJob {

    @Autowired
    ArcteryxTaskService arcteryxTaskService;
    @Autowired
    ArcteryxLinkService arcteryxLinkService;

    @Resource
    private ArcteryxProductDao arcteryxProductDao;

    /**
     * 10min 一次
     */
//    @Scheduled(cron = "0 0 */1 * * ?")
    @Scheduled(cron = "0 */10 * * * ?")
    public void executeJob() {

        TraceUtil.appendTraceId();
        log.info("定时任务查询开始");


    }


}
